<div id="content">
  <div id="intro">
    <p><a href="/1kg_school_info_sheet.xls">下载学校信息收集表</a>，寒假回家探访乡村学校</p>
    <p>了解学校信息，详细填写表格</p>
    <p>假期结束，<a href="/schools/new">提交学校信息</a></p>
    <p>投票推选贫困学校，为学校建立图书室</p>
    <p>不妨看看多背一公斤<a href="http://1kgweb.blogbus.com/logs/2005/05/1106146.html" target="_blank">去过的学校</a>，看看志愿者们的<a href="http://1kgweb.blogbus.com/logs/2005/05/1106159.html" target="_blank">活动分享</a></p>
  </div>
  <div id="submit-school">
    <a href="/1kg_school_info_sheet.xls">下载学校信息收集表</a><br />
    <div class="submit-button">
      <a href="/schools/new">提交学校信息</a>      
    </div>
  </div>
  <div id="comments">
    <h3><img src="/images/comments.png" /> 大家在多背一公斤做什么 ... <%= link_to "查看全部留言", :controller => 'broadcasts', :action => 'list' %></h3>
    <% for b in @broadcasts -%>
      <div>
        <% color = %w(orange purple red blue green) %>
        <span style="color:<%= color[rand(color.size)]%>">
          <% if b.from == 0 -%>
            <%= b.content %>
          <% else -%>
            <%= h b.content %>
          <% end -%>
        </span>
        <span class="sysmsg"><img src="/images/comment.png" /> <%= "by #{link_to b.sender.login, user_path(b.sender)}" unless b.from==0 %> <%= show_datetime b.created_at %></span>
      </div>
    <% end -%>
    <div id="post-comment" class="p">
      <div class="comment-tl"><img src="/images/comment_add.png" /> 我想说两句</div>
      <% form_for :broadcast, :url => {:controller => 'broadcasts', :action => 'create'} do |f| %>
        <%= f.text_area :content, :rows=>5 %>
        <p><%= submit_tag "发送" %></p>
      <% end -%>
    </div>
  </div>
</div>